// 管理接口的
import request from "./request";
import request2 from "./request2";

// 首页轮播图
export const getSwper = () => request("/swper/list");
// 首页推荐
export const getRecommed = (params) => request("/product/list", params);

// 详情数据
export const getDetail = (params) => request("/product/detail", params);
export const getTag = (params) => request("/product/tag", params);

// 分类品种
export const getTypes = (params) => request("/classify/types", params);
export const getTypesProducts = (params) => request("/classify/list", params);

// 发送验证码
export const getCode = (data) => request2("/users/code", data);
